package com.fuli.app.service;

import com.fuli.app.common.ActionResult;
import com.fuli.app.common.Pagination;
import com.fuli.app.dto.WorkDTO;
import com.fuli.app.dto.query.WorkQueryDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface WorkService {
    ActionResult<WorkDTO> add(MultipartFile file, String curriculumId, String content, String exerciseId, String userId);

    ActionResult<String> delete(String id);

    ActionResult<List<String>> batchDelete(List<String> ids);

    ActionResult<WorkDTO> get(String id);

    ActionResult<Pagination<WorkDTO>> listByQueryDTO(WorkQueryDTO queryDTO);

    ActionResult<String> deal(String id);

    ActionResult<List<String>> batchDeal(List<String> ids);

    ActionResult<String> grade(String id, String grade);

    ActionResult<List<WorkDTO>> getByCurriculumId(String curriculumId);

    ActionResult<List<WorkDTO>> getByExerciseId(String exerciseId);
}
